{"ast":null,"code":"import { useTabContext, getPanelId, getTabId } from '../TabsUnstyled';\nvar useTabPanel = function useTabPanel(parameters) {\n  var value = parameters.value;\n  var context = useTabContext();\n  if (context === null) {\n    throw new Error('No TabContext provided');\n  }\n  var hidden = value !== context.value;\n  var id = getPanelId(context, value);\n  var tabId = getTabId(context, value);\n  var getRootProps = function getRootProps() {\n    return {\n      'aria-labelledby': tabId != null ? tabId : undefined,\n      hidden: hidden,\n      id: id != null ? id : undefined\n    };\n  };\n  return {\n    hidden: hidden,\n    getRootProps: getRootProps\n  };\n};\nexport default useTabPanel;","map":{"version":3,"names":["useTabContext","getPanelId","getTabId","useTabPanel","parameters","value","context","Error","hidden","id","tabId","getRootProps","undefined"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@mui/base/TabPanelUnstyled/useTabPanel.js"],"sourcesContent":["import { useTabContext, getPanelId, getTabId } from '../TabsUnstyled';\nconst useTabPanel = parameters => {\n  const {\n    value\n  } = parameters;\n  const context = useTabContext();\n  if (context === null) {\n    throw new Error('No TabContext provided');\n  }\n  const hidden = value !== context.value;\n  const id = getPanelId(context, value);\n  const tabId = getTabId(context, value);\n  const getRootProps = () => {\n    return {\n      'aria-labelledby': tabId != null ? tabId : undefined,\n      hidden,\n      id: id != null ? id : undefined\n    };\n  };\n  return {\n    hidden,\n    getRootProps\n  };\n};\nexport default useTabPanel;"],"mappings":"AAAA,SAASA,aAAa,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,iBAAiB;AACrE,IAAMC,WAAW,GAAG,SAAdA,WAAW,CAAGC,UAAU,EAAI;EAChC,IACEC,KAAK,GACHD,UAAU,CADZC,KAAK;EAEP,IAAMC,OAAO,GAAGN,aAAa,EAAE;EAC/B,IAAIM,OAAO,KAAK,IAAI,EAAE;IACpB,MAAM,IAAIC,KAAK,CAAC,wBAAwB,CAAC;EAC3C;EACA,IAAMC,MAAM,GAAGH,KAAK,KAAKC,OAAO,CAACD,KAAK;EACtC,IAAMI,EAAE,GAAGR,UAAU,CAACK,OAAO,EAAED,KAAK,CAAC;EACrC,IAAMK,KAAK,GAAGR,QAAQ,CAACI,OAAO,EAAED,KAAK,CAAC;EACtC,IAAMM,YAAY,GAAG,SAAfA,YAAY,GAAS;IACzB,OAAO;MACL,iBAAiB,EAAED,KAAK,IAAI,IAAI,GAAGA,KAAK,GAAGE,SAAS;MACpDJ,MAAM,EAANA,MAAM;MACNC,EAAE,EAAEA,EAAE,IAAI,IAAI,GAAGA,EAAE,GAAGG;IACxB,CAAC;EACH,CAAC;EACD,OAAO;IACLJ,MAAM,EAANA,MAAM;IACNG,YAAY,EAAZA;EACF,CAAC;AACH,CAAC;AACD,eAAeR,WAAW"},"metadata":{},"sourceType":"module"}